import request from '@/utils/request'

// 查询关怀食谱列表
export function listCareMenu(query) {
  return request({
    url: '/catering/careMenu/list',
    method: 'get',
    params: query
  })
}

// 查询关怀食谱详细
export function getCareMenu(id) {
  return request({
    url: '/catering/careMenu/' + id,
    method: 'get'
  })
}

// 新增关怀食谱
export function addCareMenu(data) {
  return request({
    url: '/catering/careMenu/save',
    method: 'post',
    data: data
  })
}

// 修改关怀食谱
export function updateCareMenu(data) {
  return request({
    url: '/catering/careMenu/save',
    method: 'put',
    data: data
  })
}

// 删除关怀食谱
export function delCareMenu(id) {
  return request({
    url: '/catering/careMenu/remove/' + id,
    method: 'delete'
  })
}

// 导出关怀食谱
export function exportCareMenu(query) {
  return request({
    url: '/catering/careMenu/export',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}

// 查询所有关怀食谱
export function getAllCareMenus() {
  return request({
    url: '/catering/careMenu/all',
    method: 'get'
  })
} 